package com;

import com.person.Person;
import com.person.parts.Parent;
import com.person.parts.Child;

public class Runperson {
    public static void main(String[] args) {
        Person person = new Person();
        Parent parent = new Parent();
        parent.name = "张飞";
        parent.age = 34;
        parent.is_parent = false;

        person.parent = parent;
        boolean a = person.isHasSon(person.parent);
        System.out.println("当前方法的返回值是" + a);
        Child child = new Child();
        child.name = "小丁";
        child.play("小王", "篮球", child);
        person.child = child;
        person.child.play("小丽", "足球", person.child);
    }
}
